package com.amc.wxSend.feignClient;

import com.amc.common.constant.ServiceConstants;
import com.amc.framework.config.FeignConfig;
import com.amc.framework.web.domain.R;
import com.amc.wxSend.feignClient.fallback.WxSendServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 微信发送服务客户端
 *
 * @author ZhangXX
 * @date @2023/6/21 9:12
 */
@FeignClient(value = ServiceConstants.WX_SEND_SERVICE, fallbackFactory = WxSendServiceFallbackFactory.class, configuration = FeignConfig.class)
public interface WxSendServiceFeignClient {

    /**
     * 批量发送消息
     */
    @GetMapping("/batchSendMsg/{sysType}/{batchCode}")
    R<?> batchSendMsg(@PathVariable("sysType") String sysType, @PathVariable("batchCode") String batchCode);

}
